# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=py3-cachelib
_pkgname=cachelib
pkgver=0.9.0
pkgrel=0
pkgdesc="Extract from werkzeug.cache"
url="https://cachelib.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-build py3-installer py3-pytest py3-setuptools py3-tox py3-wheel"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 -m build --wheel --no-isolation
}

check() {
	tox -e pypy3
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
33f1dc99bcd993107f27b0cbc99a703fa41a7e46cd4ebf851b8e6f6a8d78e973db68b71f0f64a8455ec7e2995bda9f3e6c569c5f1522fe7269a8299b83ecc510  cachelib-0.9.0.tar.gz
"
